package com.wn.controller;

import com.wn.entity.RbacManager;
import com.wn.entity.RbacMenu;
import com.wn.service.RbacManagerService;
import com.wn.service.RbacMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rbacMenu")
public class RbacMenuController {
    @Autowired(required = false)
    RbacMenuService rbacMenuservice;
    @GetMapping("/findOne/{id}")
    public RbacMenu findOne(@PathVariable int id){
        return rbacMenuservice.findOne(id);
    }
}
